import fetch from 'common/src/utils/fetch'
// 添加
export function addLimitProfessional (data) {
    return fetch({
        url: '/api/majorservice/limitProfessional/insert',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    });
}
// 修改
export function updateLimitProfessional (data) {
    return fetch({
        url: '/api/majorservice/limitProfessional/update',
        method: 'put',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    });
}
// 软删除
export function deleteLimitProfessional (data) {
    return fetch({
        url: '/api/majorservice/limitProfessional/delete',
        method: 'delete',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    });
}
// 联动根据年级查询大类
export function getMajorByGrade(data) {
    return fetch({
        url: '/api/welcomeservice/tutorSchool/major/' + data,
        method: 'get',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}
// 联动根据年级大类查询专业
export function getSubjectByGradeAndMajor(gradeId, majorCode) {
    return fetch({
        url: 'api/commonservice/campusProfession/findProfessionByBigProfession?grade=' + gradeId + '&bigProfessionCode=' + majorCode,
        method: 'get',
        headers: { 'Content-Type': 'application/json' },
    });
}
//联动根据大类查询学院
export function queryCollegeByMajorCode(volunteerMajorId) {
    return fetch({
        url: 'api/majorservice/LimitProfessional/queryCollegeByMajorCode?volunteerMajorId=' + volunteerMajorId,
        method: 'get',
        headers: { 'Content-Type': 'application/json' }
    });
}
